package com.vhall.component.plugin.common.utils;

/**
 * 常量类
 *
 * @author skeleton
 */
public interface Constants {

    int DELETED = 1;
    int NOT_DELETED = 0;

    /**
     * 8小时TOKEN超时
     */
    int TOKEN_EXPIRE = 28800;

    /**
     * 因为和php序列化格式不兼容，token缓存key需要加此前缀
     */
    String TOKEN_PREFIX = "vhall:sso:token:";

    /**
     * 生成token拼接用
     */
    String SSO_TOKEN = "sso:token:";

    /**
     * 账号类型：邮箱
     */
    String ACCOUNT_TYPE_EMAIL = "email";
    /**
     * 账号类型：手机号
     */
    String ACCOUNT_TYPE_PHONE = "phone";
    /**
     * 账号类型：用户名
     */
    String ACCOUNT_TYPE_NAME = "name";

    String SORT_ASC = "asc";

    String SORT_DESC = "desc";


    String MAIN_SCREEN = "main_screen";


    String ASSISTANT = "3";

    String IS_DESKTOP = "is_desktop";

    /**
     * 角色状态:1>开启,0>关闭
     */
    Integer STATUS_DISABLED = 0;

    Integer STATUS_ENABLED = 1;


    String ALL_BANNED = "all_banned";


}
